<template>
  <div id="container">sdg</div>
</template>

<script>
// import { AMapLoader } from "@amap/amap-jsapi-loader";
export default {
  data() {
    return {};
  },
  mounted() {
    var map = new window.BMapGL.Map("container"); // 创建地图实例
    var point = new window.BMapGL.Point(116.404, 39.915); // 创建点坐标
    map.centerAndZoom(point, 15); // 初始化地图，设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
    map.setMapStyleV2({
      styleId: "39b87f1090df68848cc7af95e8bb4901", //个性化样式
    });
  },
};

// let onPosition = (devSelect) => {
//   //城市检索
//   var local = new BMap.LocalSearch(map, {
//     renderOptions: { map: map },
//   });
//   local.search(devSelect.name);
//   console.log(devSelect.name);
// };
</script>
<style></style>
